package com.ny.dao;

import com.ny.entity.Student;

import java.sql.SQLException;
import java.util.List;

public interface StudentDao {
    public Student selectStudent(String name, String password) throws SQLException;

    int insertStudent(Student student) throws SQLException;

    List<Student> selectAllStudents() throws SQLException;
    Student getStudentById(int studentId) throws SQLException;
    int updateStudent(Student student) throws SQLException;
    int deleteStudent(int studentId) throws SQLException;
}
